<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSmsSendPlanTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sms_send_plan', function (Blueprint $table) {
            $table->increments('id');
            $table->string("templet_id",50)->comment("短信模板ID");
            $table->string("object",100)->comment("发送对象");
            $table->string("mobile",255)->nullable()->comment("指定用户");
            $table->integer("status")->default(0)->comment("0未推送,1推送中,2已推送");
            $table->dateTime("send_date")->comment("发送时间");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sms_send_plan');
    }
}
